package com.cxk.hr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cxk.hr.dao.EmployeeMapper;
import com.cxk.hr.dao.SalaryMapper;
import com.cxk.hr.pojo.Employee;
import com.cxk.hr.pojo.Salary;
import com.cxk.hr.service.SalaryService;

@Service("salaryService")
public class SalaryServiceImpl implements SalaryService {
	@Resource
	private EmployeeMapper employeeMapper;
	@Resource
	private SalaryMapper salaryMapper;

	@Override
	public Salary selectById(Integer id) {
		Salary salary = salaryMapper.selectById(id);
		return salary;
	}

	@Override
	public Salary selectByNumber(Integer employeeNumber) {
		Salary salary = salaryMapper.selectByNumber(employeeNumber);
		return salary;
	}

	@Override
	public List<Salary> findAll() {
		List<Salary> salaries = salaryMapper.findAll();
		return salaries;
	}

	@Override
	public List<Salary> search(String input, Integer pageNo) {
		return null;
	}

}
